<?php

namespace app\common\validate;

use app\common\validate\Base;

/**
 *留言validate
 */
class Msg extends Base
{
    protected $rule = [
        'leave_company' => 'require|length:2,128',
        'leave_name' => 'require|chs|length:2,16',
        'leave_tel' => 'require|number|length:11|isMobile',
        'leave_email' => 'email',
        'leave_msg' => 'require|length:1,200',

    ];

    protected $message = [
        'leave_company' => '填写您的公司名称',
        'leave_name' => '填写中文姓名',
        'leave_tel' => '填写11位手机号码',
        'leave_email' => '请检查邮箱地址',
        'leave_msg' => '填写留言内容，200个字符以内',

    ];


}